assist: fix bug committing just added file when -J is used
authorJoey Hess <joeyh@joeyh.name>
Thu, 18 May 2023 19:02:10 +0000 (15:02 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 18 May 2023 19:02:10 +0000 (15:02 -0400)
Need to wait for worker threads adding files before flushing the queue.

Command/Assist.hs

index de26d6c87a5b368e53516e5bb2bfbadacab183c8..6075b63ceabfe20f337c11866e2475d2f32c949f 100644 (file)
@@ -33,6 +33,7 @@ myseek o = startConcurrency transferStages $ do
                , Command.Add.checkGitIgnoreOption = CheckGitIgnore (False)
                , Command.Add.dryRunOption = DryRun False
                }
+       waitForAllRunningCommandActions
        -- Flush added files to index so they will be committed.
        Annex.Queue.flush